package org.jeecg.modules.demo.api.service.impl;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.api.mapper.ApiInfoMapper;
import org.jeecg.modules.demo.api.service.IApiInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: aj_info
 * @Author: jeecg-boot
 * @Date:   2023-10-27
 * @Version: V1.0
 */
@Service
public class ApiInfoServiceImpl  implements IApiInfoService {
    @Autowired
    private ApiInfoMapper ApiInfoMapper;
    @Override

    public JSONObject getall(String user) {
        JSONObject tmpRet = new JSONObject();
        try{

            tmpRet.put("code", "0");
        }
        catch(Exception ex){
            tmpRet.put("code", "1");
            tmpRet.put("msg", ex.toString());
        }
        return tmpRet;
    }
    public JSONObject getdaml(){
        JSONObject tmpRet = new JSONObject();
        try{
            tmpRet.put("data", ApiInfoMapper.getdaml());
            tmpRet.put("code", "0");
        }
        catch(Exception ex){
            tmpRet.put("code", "1");
            tmpRet.put("msg", ex.toString());
        }
        return tmpRet;
    }
    public String watermarkinfo(){
        return ApiInfoMapper.watermarkinfo();
    }
    public JSONObject getqxuser(String id){
        JSONObject tmpRet = new JSONObject();
        try{
            tmpRet.put("data", ApiInfoMapper.getqxuser(id));
            tmpRet.put("code", "0");
        }
        catch(Exception ex){
            tmpRet.put("code", "1");
            tmpRet.put("msg", ex.toString());
        }
        return tmpRet;
    }
}
